// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * DownloadableLinkTitle generated by hbm2java
 */
@Entity
@Table(name = "downloadable_link_title", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = {
		"link_id", "store_id" }))
public class DownloadableLinkTitle implements java.io.Serializable {

	private Integer titleId;
	private DownloadableLink downloadableLink;
	private CoreStore coreStore;
	private String title;

	public DownloadableLinkTitle() {
	}

	public DownloadableLinkTitle(DownloadableLink downloadableLink,
			CoreStore coreStore) {
		this.downloadableLink = downloadableLink;
		this.coreStore = coreStore;
	}

	public DownloadableLinkTitle(DownloadableLink downloadableLink,
			CoreStore coreStore, String title) {
		this.downloadableLink = downloadableLink;
		this.coreStore = coreStore;
		this.title = title;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "title_id", unique = true, nullable = false)
	public Integer getTitleId() {
		return this.titleId;
	}

	public void setTitleId(Integer titleId) {
		this.titleId = titleId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "link_id", nullable = false)
	public DownloadableLink getDownloadableLink() {
		return this.downloadableLink;
	}

	public void setDownloadableLink(DownloadableLink downloadableLink) {
		this.downloadableLink = downloadableLink;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "store_id", nullable = false)
	public CoreStore getCoreStore() {
		return this.coreStore;
	}

	public void setCoreStore(CoreStore coreStore) {
		this.coreStore = coreStore;
	}

	@Column(name = "title")
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}
